package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.AttentionBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Bean.RegisterBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.AttentionIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.LoginListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class AttClubModel extends RetrofitBaseModel implements AttentionIface<AttentionBean> {
    private LoginService loginService;
    private Retrofit retrofit;

    public AttClubModel(){
        retrofit = getRetrofit();
        loginService = getLoginService();
    }
    @Override
    public void isattclub(String user_id, String club_id, LoginListener<AttentionBean> loginListener) {
        Call<AttentionBean> call = loginService.isattclub(user_id, club_id);
        callenqueue(call,loginListener);

    }

    @Override
    public void attclub(String user_id, String club_id, LoginListener<AttentionBean> loginListener) {
        Call<AttentionBean> call = loginService.attclub(user_id, club_id);
        callenqueue(call,loginListener);
    }

    @Override
    public void unattclub(String user_id, String club_id, LoginListener<AttentionBean> loginListener) {
        Call<AttentionBean> call = loginService.unattclub(user_id, club_id);
        callenqueue(call,loginListener);
    }
}
